<!DOCTYPE html>
<html>
	<head>
		<title>StormEngineC</title>
		<meta name="description" content="cornell-box" />
		<meta charset=utf-8 />
		
		<style>
			body{
				background:#66ACA4;
				color:#FFF;
			}
		</style>
		<script src="StormEngineC/StormEngineC.class.js"></script>
	</head>
	
	<body>
		<canvas id="stormCanvas" width="512" height="512" style="margin-left:67px"></canvas> 
		 
		<script>
			$(window).load(function () {
				stormEngineC.createWebGL({	'target':	'stormCanvas', // ID canvas
											'callback':	function(){},
											'editMode':	true,
											'enableRender':true});
				stormEngineC.setWebGLBackground('environmentMap');   
				
				// LIGHTS
				stormEngineC.setAmbientColor($V3([0.7, 0.75, 0.8]));
				
				/*var lightSun = stormEngineC.createLight({	'type':'sun',
										'direction':$V3([-0.49,-1.0,-0.20]), // type sun only direction param
										'color':5770 // V3 color or int kelvins(1000K-15000K http://en.wikipedia.org/wiki/Color_temperature)
										});*/
				
				/*var lightB = stormEngineC.createLight({	'type':'spot', // TYPE SPOT (MAX 10)
										'position':$V3([0.0,20.5,0.0]),
										'direction':$V3([0.01,-1.0,0.01]), //on render spot is omni
										'color':3200 // V3 color or int kelvins(1000K-15000K http://en.wikipedia.org/wiki/Color_temperature)
										});*/ 
				
				
				
				
				// CAMERA
				var nodeCam = stormEngineC.createCamera($V3([0.0, 0.0, -28.0]), 10.0); // create one camera
				stormEngineC.setWebGLCam(nodeCam);
				//nodeCam.setView('TOP');
				//nodeCam.enableDOF();
				
				
				// SCENE
				node = stormEngineC.createNode();
				node.loadObj({'objUrl':"boxhole.obj"});
				node.setPosition($V3([0.0, 0.0, 0.0]));
				
				
				// ACTION
				stormEngineC.go();
			});
		</script>
		<br />
		WASD keys: Move
		<br /><br />
		
		 
	</body>
</html>
